home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / os2 / gnuwget.zip / wget-1.4.3 / doc / Makefile.in < prev    next >
Makefile  |  1997-02-01  |  3KB  |  136 lines

  1. # Makefile for `wget' utility
  2. # Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
  3.  
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; if not, write to the Free Software
  16. # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. #
  19. # Version: @VERSION@
  20. #
  21.  
  22. SHELL = /bin/sh
  23.  
  24. # Program to format Texinfo source into Info files.
  25. MAKEINFO = @MAKEINFO@
  26. # Program to format Texinfo source into DVI files.
  27. TEXI2DVI = texi2dvi
  28. # Program to convert DVI files to PostScript
  29. DVIPS = dvips -D 300
  30. # Program to convert texinfo files to html
  31. TEXI2HTML = texi2html -expandinfo -split_chapter
  32.  
  33. top_srcdir = @top_srcdir@
  34. srcdir     = @srcdir@
  35. VPATH      = @srcdir@
  36.  
  37. prefix     = @prefix@
  38. infodir    = @infodir@
  39. mandir     = @mandir@
  40. manext     = 1
  41. sysconfdir = @sysconfdir@
  42.  
  43. INSTALL      = @INSTALL@
  44. INSTALL_DATA = @INSTALL_DATA@
  45. RM = rm -f
  46.  
  47. MAN        = wget.$(manext)
  48. WGETRC     = $(sysconfdir)/wgetrc
  49.  
  50. #
  51. # Dependencies for building
  52. #
  53.  
  54. all: wget.cat wget.info
  55.  
  56. everything: all wget_us.ps wget_a4.ps wget_toc.html
  57.  
  58. wget.info: wget.texi
  59.     -$(MAKEINFO)
  60.  
  61. wget.cat: $(MAN)
  62.     nroff -man $(srcdir)/$(MAN) > wget.cat
  63.  
  64. wget.dvi: wget.texi
  65.     $(TEXI2DVI) $(srcdir)/wget.texi
  66.  
  67. wget_us.ps: wget.dvi
  68.     $(DVIPS) -t letter -o $@ wget.dvi
  69.  
  70. wget_a4.ps: wget.dvi
  71.     $(DVIPS) -t a4 -o $@ wget.dvi
  72.  
  73. wget_toc.html: wget.texi
  74.     $(TEXI2HTML) $(srcdir)/wget.texi
  75.  
  76. #
  77. # Dependencies for installing
  78. #
  79.  
  80. # install all the documentation
  81. install: install.man install.info install.wgetrc
  82.  
  83. # uninstall all the documentation
  84. uninstall: uninstall.man uninstall.info
  85.  
  86. # install info pages, creating install directory if necessary
  87. install.info: wget.info
  88.     $(top_srcdir)/mkinstalldirs $(infodir)
  89.     -for file in $(srcdir)/wget.info*; do \
  90.        [ -f "$$file" ] && $(INSTALL_DATA) $$file $(infodir) ; \
  91.     done
  92.  
  93. # install man page, creating install directory if necessary
  94. install.man:
  95.     $(top_srcdir)/mkinstalldirs $(mandir)/man$(manext)
  96.     $(INSTALL_DATA) $(srcdir)/$(MAN) $(mandir)/man$(manext)/$(MAN)
  97.  
  98. # install sample.wgetrc
  99. install.wgetrc:
  100.     $(top_srcdir)/mkinstalldirs $(sysconfdir)
  101.     -if [ -f $(WGETRC) ]; then \
  102.        mv $(WGETRC) $(WGETRC).old ; \
  103.     fi
  104.     $(INSTALL_DATA) $(srcdir)/sample.wgetrc $(WGETRC)
  105.  
  106. # uninstall info pages
  107. uninstall.info:
  108.     $(RM) $(infodir)/wget.info*
  109.  
  110. # uninstall man page
  111. uninstall.man:
  112.     $(RM) $(mandir)/man$(manext)/$(MAN)
  113.  
  114. #
  115. # Dependencies for cleanup
  116. #
  117.  
  118. clean:
  119.     $(RM) *~ *.bak *.cat
  120.     $(RM) *.dvi *.aux *.cp *.cps *.fn *.toc *.tp *.vr *.ps *.ky *.pg *.log
  121.  
  122. distclean: clean
  123.     $(RM) Makefile
  124.  
  125. realclean: distclean
  126.     $(RM) wget.info*
  127.  
  128. #
  129. # Dependencies for maintenance
  130. #
  131.  
  132. subdir = doc
  133.  
  134. Makefile: Makefile.in ../config.status
  135.     cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
  136.